import { buildService, openBuildService } from "../../helper/service";

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  // 数据源及实体列表
  getEntityList: {
    url: '/api/v1/data/b_entity/entity_data_list',
    method: 'get'
  },
  // 获取实体信息列表
  getEntityFieldList: {
    url: '/api/v1/data/rpt_b_entity_field/field_list',
    method: 'get'
  },
  // 获取实体数据配置列表
  getEntityConfigList: {
    url: '/api/v1/data/ent_data_set/list',
    method: 'get'
  },
  //数据源列表
  getdataList: {
    url: '/api/v1/data/data_resource/data_resource_list',
    method: 'get'
  },

}
const platSettings = {
  //获取数据库表
  getTableList: {
    url: '/web/v1/qrcode/db/table_list',
    method: 'get'
  },
  //获取数据库表字段
  getListName: {
    url: '/web/v1/qrcode/db/field_list',
    method: 'get'
  },
}
export default { ...openBuildService(settings), ...buildService(platSettings) };
